package com.zkjl.protect_business.entity;

import com.zkjl.protect_business.entity.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * 通知实体
 **/
@Data
@ApiModel(value = "NoticeRecord对象", description = "通知记录对象")
@Document(indexName = "pb_notice_record", shards = 1, replicas = 0)
public class NoticeRecord extends BaseEntity {


    @Id
    @ApiModelProperty(value = "主键")
    private String id;

    @ApiModelProperty(value = "通知名称")
    @Field(type = FieldType.Keyword)
    private String name;

    @ApiModelProperty(value = "通知id")
    @Field(name = "notice_id", type = FieldType.Keyword)
    private String noticeId;


    @ApiModelProperty(value = "通知单位id")
    @Field(name = "org_id", type = FieldType.Keyword)
    private String orgId;

    @ApiModelProperty(value = "通知单位")
    @Field(name = "org_name", type = FieldType.Keyword)
    private String orgName;

    @ApiModelProperty(value = "是否已读")
    @Field(name = "is_read", type = FieldType.Keyword)
    private String isRead;

    @ApiModelProperty(value = "读取人")
    @Field(name = "read_people", type = FieldType.Keyword)
    private String readPeople;

    @ApiModelProperty(value = "联系方式")
    @Field(type = FieldType.Keyword)
    private String contact;

    @ApiModelProperty(value = "读取时间")
    @Field(name = "read_time", type = FieldType.Date)
    private Long readTime;

}
